-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index node.id in elasticsearch/node metricset #9209
Index node.id in elasticsearch/node metricset #9209
Conversation
@@ -1,15 +1,16 @@ | |||
{ | |||
"@timestamp": "2017-10-12T08:05:34.853Z", | |||
"beat": { | |||
"agent": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: Remember that this needs to be beat
in the 6.x backport PR.
jenkins, test this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left on minor comment. Besides that LGTM.
@@ -93,8 +93,7 @@ func eventsMapping(r mb.ReporterV2, info elasticsearch.Info, content []byte) err | |||
continue | |||
} | |||
|
|||
// Write name here as full name only available as key | |||
event.MetricSetFields["name"] = name | |||
event.MetricSetFields["id"] = id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this a "bug" before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it was. We were actually assigning the node ID to the name
field in the event. It's easy to get them confused because by default ES will set the node name as the node ID.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is potentially a breaking change or a bug fix, so we should probably mention it in the changelog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Added CHANGELOG entry in breaking changes section in d3750ad7e.
jenkins, test this |
jenkins, test this |
3 similar comments
jenkins, test this |
jenkins, test this |
jenkins, test this |
This PR teaches the
elasticsearch/node
metricset to index the Elasticsearch node's id as the metricset-levelid
field.This is the final PR in a series of recent PRs that ensured that all
elasticsearch
metricsets had module-levelcluster.id
andcluster.name
fields and that thenode
andnode_stats
metricsets also had thenode.id
andnode.name
fields.As such, this final PR also adds a CHANGELOG entry.